﻿using GameLogic.Data;
using TEngine;

namespace GameLogic
{
    public class OnEnterGameAppProcedure : ProcedureBase
    {
        protected override void OnEnter(IFsm<IProcedureManager> procedureOwner)
        {
            base.OnEnter(procedureOwner);
            Log.Debug("OnEnter GameApp Procedure..........");

            GameData.Instance.Load();
            ShipModule.Instance.Init();
            
            ChangeState<ProcedureMain>(m_ProcedureOwner);
        }
        protected override void OnUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds, float realElapseSeconds)
        {
            base.OnUpdate(procedureOwner, elapseSeconds, realElapseSeconds);
        }
    }
}